package root;

import java.util.Comparator;

public class ParsingOrderComparator implements Comparator<SentenceInterpretation> {
  @Override
  public int compare(SentenceInterpretation o1, SentenceInterpretation o2) {
    if (o1.sentenceWord < o2.sentenceWord) {
      return -1;
    }
    if (o1.sentenceWord > o2.sentenceWord) {
      return 1;
    }
    return 0;
  }
}